//
//  UIImage+ChangeImageSize.m
//  Find
//
//  Created by lanou3g on 15/11/3.
//  Copyright © 2015年 Reiko. All rights reserved.
//

#import "UIImage+ChangeImageSize.h"

@implementation UIImage (ChangeImageSize)


// 改变图片的大小
+ (UIImage*)imageWithImageSimple:(UIImage*)image scaledToSize:(CGSize)newSize
{
    UIGraphicsBeginImageContext(newSize);
    [image drawInRect:CGRectMake(0,0,newSize.width,newSize.height)];
    UIImage* newImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    return newImage;
    
}

@end
